<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title>用户注册</title>
<%@ include file="/WEB-INF/jsp/public/common.jspf"%>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/style/css/center.css">

</head>
<body>

	<!-- 标题显示 -->
	<div id="Title_bar">用户注册</div>

	<div class="container">
		<div class="row">
			<div class="col-md-8 col-md-offset-2 panel panel-default">

				<h1 class="margin-base-vertical">个人信息注册页面</h1>


				<%-- <s:debug></s:debug> --%>
				<s:form action="loginAndLogoutAction_register"
					class="margin-base-vertical">
					<table class="table">
						<tr>
							<td>用户名:</td>
							<td>
								<s:textfield type="text" name="username" ></s:textfield>
								<s:fielderror cssStyle="color:red;" fieldName="username"><small style="color:red;">*</small></s:fielderror>
								
							</td>
							
						</tr>
						<tr>
							<td>密码:</td>
							<td>
								<s:textfield type="password" name="password" ></s:textfield>
								<s:fielderror cssStyle="color:red;" fieldName="password"><small style="color:red;">*</small></s:fielderror>
								<%-- <s:fielderror fieldName="password"></s:fielderror> --%>
							</td>
						</tr>
						<tr>
							<td>确认密码:</td>
							<td>
								<s:textfield type="password" name="confirmPassword" ></s:textfield>
								<s:fielderror cssStyle="color:red;" fieldName="confirmPassword"><small style="color:red;">*</small></s:fielderror>
								<%-- <s:fielderror fieldName="confirmPassword"></s:fielderror> --%>
							</td>
						</tr>
						<tr>
							<td>邮箱地址:</td>
							<td>
								<s:textfield type="text" name="email" ></s:textfield>
								<%-- <s:fielderror fieldName="email"></s:fielderror> --%>
								<s:fielderror cssStyle="color:red;" fieldName="email"><small style="color:red;">*</small></s:fielderror>
							</td>
						</tr>
						<tr>
							<td>性别:</td>
							<td>
								<s:set value="#{0:'男',1:'女'}" var="genderMap"></s:set>
								<s:radio name="gender" list="#genderMap" listKey="key" listValue="value"></s:radio>
								<%-- <s:fielderror fieldName="gender"></s:fielderror> --%>
								<s:fielderror cssStyle="color:red;" fieldName="gender"><small style="color:red;">*</small></s:fielderror>
							</td>
						</tr>
						<tr>
							<td>手机号码:</td>
							<td>
								<s:textfield type="text" name="phone" ></s:textfield>
								<s:fielderror cssStyle="color:red;" fieldName="phone"></s:fielderror> 
							</td>
						</tr>
						<tr>
							<td>出生日期:</td>
							<td>
							<!-- <input type="text" value="2012-05-15 21:05" id="datetimepicker" data-date-format="yyyy-mm-dd hh:ii"> -->

								<input name="birth" id="datetimepicker" data-date-format="yyyy-mm-dd" value="" placeholder="1992-12-28"/>
									<s:fielderror fieldName="birth"></s:fielderror>
								<script type="text/javascript">
									$('#datetimepicker').datetimepicker({
										
										 language:  'zh',
										    weekStart: 1,
										    todayBtn:  1,
											autoclose: 1,
											todayHighlight: 1,
											startView: 2,
											minView: 2,
											forceParse: 0		
									});								
								</script>
							</td>
						</tr>
						<tr>
							<td>民族:</td>
							<td>
								<s:textfield type="text" name="nation" ></s:textfield>
									<s:fielderror fieldName="nation"></s:fielderror>
							</td>
						</tr>
						<tr>
							<td>教育程度:</td>
							<td>
								<s:set value="#{0:'高中',1:'专科',2:'本科',3:'研究生',4:'博士',5:'其他'}" var="eduMap"></s:set>
								<s:radio name="education" list="#eduMap" listKey="key" listValue="value"></s:radio>
								<%-- <s:fielderror fieldName="education"></s:fielderror> --%>
								<s:fielderror cssStyle="color:red;" fieldName="education"><small style="color:red;">*</small></s:fielderror>
							</td>
						</tr>
						<tr>
							<td>职称:</td>
							<td>
								<s:textfield type="text" name="work" ></s:textfield>
							</td>
						</tr>
						<tr>
							<td>家庭住址:</td>
							<td>
								<s:textfield type="text" name="place" ></s:textfield>
							</td>
						</tr>
						<tr>
							<td><a class="btn btn-primary"
								href="javascript:history.go(-1);">返回</a></td>
							<td><button type="submit" class="btn btn-primary">提交</button></td>
						</tr>
					</table>
				</s:form>

				<div class="margin-base-vertical">
					<small class="text-muted" style="color:red;">注：*&nbsp 为必填项</small>
				</div>

			</div>
			<!-- //main content -->
		</div>
		<!-- //row -->
	</div>
	<!-- //container -->

<!-- 
	<script type="text/javascript">
		$('.form_date').datetimepicker({
			language : 'zh',
			weekStart : 1,
			todayBtn : 1,
			autoclose : 1,
			todayHighlight : 1,
			startView : 2,
			minView : 2,
			forceParse : 0
		});
	</script> -->
</body>
</html>
